package eight;

import java.util.ArrayList;

/**
 * @author zzb
 * @since 2021-01-13
 */

//Composite
public class ProjectManager extends Employer{

  public ProjectManager(String name) {
    setName(name);
    employers = new ArrayList();
  }

  @Override
  public void add(Employer employer) {
    employers.add(employer);
  }

  @Override
  public void delete(Employer employer) {
    employers.remove(employer);
  }
}
